<template>
<div class="box-container">
  <div class="box-item-container boy-container">
    <img mode="widthFix" src="./images/boy.png" class="box-image" />
    <div class="box-top-area">
      <div class="send-entry"></div>
    </div>
    <div class="rest-area">
      <button class="base-button" bindtap="onCallPutIntoWechatButtonTap" data-value="boy">
        {{props.boyButton1.value}}
      </button>
      <button class="base-button" bindtap="onCallPredivWechatButtonTap" data-value="boy">
        {{props.boyButton2.value}}
      </button>
    </div>
  </div>
  <div class="box-item-container girl-container">
    <img mode="widthFix" src="./images/girl.png" class="box-image" />
    <div class="box-top-area">
      <div class="send-entry"></div>
    </div>
    <div class="rest-area">
      <button class="base-button" bindtap="onCallPutIntoWechatButtonTap" data-value="girl">
        {{props.girlButton1.value}}
      </button>
      <button class="base-button" bindtap="onCallPredivWechatButtonTap" data-value="girl">
        {{props.girlButton2.value}}
      </button>
    </div>
  </div>
</div>
</template>


<script>
export default {
  props: ['props']
}
</script>

<style>
.box-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 5px 0;
}
.boy-container {
  background-color: #5783ea;
}
.girl-container {
  background-color: #e057b3;
}
.box-item-container {
  position: relative;
  overflow: hidden;
  margin: 0 10px;
  flex: 1;
  height: 290px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.box-image {
  position: absolute;
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
  top: 55px;
}

.box-top-area {
  width: 100%;
  height: 75px;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.send-entry {
  margin-top: -15px;
  width: 70%;
  border-radius: 20px;
  background-color: rgb(28 28 28 / 0.2);
  height: 17px;
  box-shadow: inset 0px 0px 1px 0px #1c1c1c94;
}
.rest-area {
  padding: 0 10px 15px;
}
.base-button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background-color: #151518;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 10px;
}

</style>
